﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using agvcontroller.Common;

namespace agvcontroller.Control
{
    public class CCharger
    {
        public int ID
        {
            get;
            set;
        }

        public string Name
        {
            get;
            set;
        }

        public int NodeID
        {
            get;
            set;
        }

        public bool Use
        {
            get;
            set;
        }

        public enumContolState Control
        {
            get;
            set;
        }
    }

    public class CChargerDic : Dictionary<int, CCharger>
    {
        public CChargerDic()
        {
        }

        private static CChargerDic uniqueInstance;

        public static CChargerDic getInstance()
        {
            if (uniqueInstance == null)
            {
                uniqueInstance = new CChargerDic();
            }
            return uniqueInstance;
        }
    }
}
